﻿namespace JNPF.Utils
{
    /// <summary>
    /// 表单列实体
    /// </summary>
    public class GeneratorFormColumn
    {
        /// <summary>
        /// 模型名称
        /// </summary>
        public string vModel { get; set; }

        public string Model { get; set; }

        /// <summary>
        /// 标签类型
        /// </summary>
        public string jnpfKey { get; set; }

        /// <summary>
        /// 数据类型
        /// </summary>
        public string dataType { get; set; }

        /// <summary>
        /// 字典类型
        /// </summary>
        public string dictionaryType { get; set; }

        /// <summary>
        /// 多选标记
        /// </summary>
        public bool multiple { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public PropsModel props { get; set; }

        /// <summary>
        /// 时间格式化
        /// </summary>
        public string format { get; set; }

        /// <summary>
        /// 时间类型
        /// </summary>
        public string dateType { get; set; }

        /// <summary>
        /// 自动生成规则
        /// </summary>
        public string billRule { get; set; }

        /// <summary>
        /// 必填
        /// </summary>
        public bool required { get; set; }

        /// <summary>
        /// 提示时机
        /// </summary>
        public string trigger { get; set; } = "blur";

        /// <summary>
        /// 提示语
        /// </summary>
        public string placeholder { get; set; }

        /// <summary>
        /// 验证规则
        /// </summary>
        public object regList { get; set; }

        public bool range { get; set; }

        /// <summary>
        /// 默认值
        /// </summary>
        public object defaultValue { get; set; }
    }

    public class PropsModel
    {
        public string label { get; set; }
        public string value { get; set; }
    }
}
